package com.yc.chaoshi.cs_manage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.chaoshi.entity.OmsOrder;
import com.yc.chaoshi.entity.UmsAddres;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xz
 * @since 2022-08-04
 */
public interface IOmsOrderService extends IService<OmsOrder> {
    /**
     * 获得所有订单
     * @param pageNum
     * @param pageSize
     * @param sreachname
     * @param orderstatus
     * @return
     */
    Page listAll(Integer pageNum, Integer pageSize, String sreachname, Integer orderstatus);

    boolean delete(Integer id);

    UmsAddres getaddress(Integer addressid);

    /**
     * 查询该订单的所有商品
     * @param pageNum
     * @param pageSize
     * @param sreachname
     * @param orderid
     * @return
     */
    Page listGoods(Integer pageNum, Integer pageSize, String sreachname, Integer orderid);

}
